﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Things.Web.CropsCategory
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					Guid CropsID=new Guid(strid);
					ShowInfo(CropsID);
				}
			}
		}
		
	private void ShowInfo(Guid CropsID)
	{
		Things.BLL.CropsCategory bll=new Things.BLL.CropsCategory();
		Things.Model.CropsCategory model=bll.GetModel(CropsID);
		this.lblCropsID.Text=model.CropsID.ToString();
		this.lblCropsName.Text=model.CropsName;
		this.lblKind.Text=model.Kind;

	}

    protected void btnGoList_Click(object sender, EventArgs e)
    {
        Response.Redirect("list.aspx");
    }


    }
}
